package com.styletransfer.model;

import java.util.Date;

/**
 * 标签实体类
 * 
 * 这个类对应数据库中的tag表，用于存储风格标签信息。
 * 每个属性都与数据库表中的列相对应。
 */
public class Tag {
    
    private Long id;             // 标签ID，主键
    private String name;         // 标签名称
    private String description;  // 标签描述
    private Integer type;        // 标签类型：1-风格标签，2-作品标签
    private Integer useCount;    // 使用次数
    private Date createTime;     // 创建时间
    private Date updateTime;     // 更新时间
    private Integer status;      // 状态：0-禁用，1-正常
    
    // 构造函数
    public Tag() {
    }
    
    // Getters and Setters
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public Integer getType() {
        return type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    
    public Integer getUseCount() {
        return useCount;
    }
    
    public void setUseCount(Integer useCount) {
        this.useCount = useCount;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Date getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    @Override
    public String toString() {
        return "Tag{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", type=" + type +
                ", useCount=" + useCount +
                ", status=" + status +
                '}';
    }
}
